# Content Type Set
Applies named content type templates to a site by processing rows from an Excel file.
Filename pattern: filename must contain ContentTypeSet (case-insensitive).
Example: 20240115 ContentTypeSet legal.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url / SiteUrl | Conditional | Server-relative URL of the target site. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve the target site URL from the matter list. Required when Url is not provided. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
| SiteSet / WebSet / WebCfg / SiteCfg | Conditional | Name of a SiteCfg template in config.json. Applies all content types defined in that site template. Required when ContentTypeSets is not provided. |
| ContentTypeSets / contenttypeset / contentypeset / contenttypes / contenttype | Conditional | Comma- or semicolon-separated names of ContentTypeCfg templates in config.json to apply. Required when SiteSet is not provided. |
| Properties | No | Any additional columns are collected as properties and passed to the template lookups for dynamic value substitution. |
Either Url or MatterCode must be provided. At least one of SiteSet or ContentTypeSets must be provided.
# Behavior
This handler is template-based. The actual content types — their columns, settings, and structure — are defined in config.json templates, not in the Excel file itself.
When both SiteSet and ContentTypeSets are provided, they are merged: the content types from the site template are applied first, then any additional content types named in ContentTypeSets are added. Duplicates (by name) are skipped.
When only MatterCode is given, the handler looks up the site URL from the matter list. If the matter is not found or has no site URL, the row fails.
# Related links
- Content Type Configuration — defines the content type templates
- Column Set handler — create site columns before applying content types
- Doclib Set handler — activate content types on document libraries
- View Set handler — apply view templates to libraries